<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <title th:text="${webinfo.webname}+'-📖'"></title>
    <link rel="icon" th:href="'/images/'+${webinfo.webicon}"/>
    <!--bootstrap3 cdn-->
    <link rel="stylesheet" href="https://cdn.bootcss.com/twitter-bootstrap/3.4.1/css/bootstrap.min.css"/>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
    <!--font-awesome-->
    <link rel="stylesheet" href="/style/css/font-awesome.min.css"/>
    <!--layui-->
    <link rel="stylesheet" href="/layui/css/layui.css"/>
    <script src="../layui/layui.js"></script>
    <link rel="stylesheet" href="/style/css/pushbar.css"/>
    <script src="/script/js/pushbar.js"></script>
    <!--自定义样式css-->
    <link rel="stylesheet" href="/style/theme/default/main.css"/>
    <link rel="stylesheet" href="/style/theme/default/style.css"/>
    <!--js-->
    <script src="/script/js/me.js"></script>

    <script type="text/javascript" src='/script/js/pdfobject.min.js'></script>
    <style type="text/css">
        html, body, #pdf_viewer {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
        }
    </style>
</head>
<body>
<div id="pdf_viewer"></div>
</body>
<script type="text/javascript">
    if (PDFObject.supportsPDFs) {
        // PDF嵌入到网页
        PDFObject.embed("files/myblog.pdf", "#pdf_viewer");
    } else {
        /*location.href = "/canvas";*/
        location.href = "/canvas";
    }
</script>
</html>